package com.model;

import java.util.Date;

public class Personnel {
    //人员实体类
    private int pid;
    private String pname;
    private int age;
    private String sex;
    private String pgroup;
    private String pposition;
    private Date entry_days;
    //无参的构造方法
    public Personnel() {}
    //有参的构造方法

    public Personnel(int pid, String pname, int age, String sex, String pgroup, String pposition, Date entry_days) {
        this.pid = pid;
        this.pname = pname;
        this.age = age;
        this.sex = sex;
        this.pgroup = pgroup;
        this.pposition = pposition;
        this.entry_days = entry_days;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPgroup() {
        return pgroup;
    }

    public void setPgroup(String pgroup) {
        this.pgroup = pgroup;
    }

    public String getPposition() {
        return pposition;
    }

    public void setPposition(String pposition) {
        this.pposition = pposition;
    }

    public Date getEntry_days() {
        return entry_days;
    }

    public void setEntry_days(Date entry_days) {
        this.entry_days = entry_days;
    }
}
